package starter.game.service.impl;

import starter.game.netty.contxt.SvcContext;
import starter.game.service.HelloI;
import gen_b2g.game.GameServiceI;
import gen_b2g.game.bean.NStr;
import gen_b2g.game.bean.NUser;
import gen_b2g.game.bean.ReturnStatus;

import com.bowlong.net.TcpChannel;
import com.bowlong.util.Log;

public class GameServiceImp extends GameServiceI {

	@Override
	public TcpChannel chn(int XID) throws Exception {
		return null;
	}

	@Override
	public void onExcept(TcpChannel chn, String method, String except,
			ReturnStatus ret) throws Exception {
		Log.info(method + " : " + except);
	}

	@Override
	public void onLogin(TcpChannel chn, String token, String device,
			String deviceSystem, String deviceCode, String resolution,
			String language, String uuid, String pass, String version,
			String channel, int serverId, int loginType, NUser nUser,
			ReturnStatus ret) throws Exception {
		// TODO Auto-generated method stub

	}

	@Override
	public void onPing(TcpChannel chn, String str, NStr rst2, ReturnStatus ret)
			throws Exception {
		SvcContext ctx = (SvcContext) chn;
		HelloI.ping(ctx, str, rst2, ret);
	}

	@Override
	public void onSubmitNewTaskIndex(TcpChannel chn, int index, ReturnStatus ret)
			throws Exception {
		// TODO Auto-generated method stub

	}

	@Override
	public void onSetNameAndPass(TcpChannel chn, String name, String pass,
			ReturnStatus ret) throws Exception {
		// TODO Auto-generated method stub

	}

}
